package springboot.springboot06;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

@Slf4j
@DisplayName("Junit5测试")
public class test_junit5 {

    @DisplayName("test1")
    @Test
    void test1(){
        System.out.println("hello");
        log.info("321");
    }

    @DisplayName("测试断言机制")
    @Test
    void test2(){
        int i=2,j=3;
        int cal = i+j;
        assertEquals(5,cal,"计算失败，不相等。");
    }



}
